home *** CD-ROM | disk | FTP | other *** search
/ Giga Games 1 / Giga Games.iso / net / usenet / volume5 / hunt2 / patch1 < prev   
Encoding:
Text File  |  1989-03-10  |  2.7 KB  |  93 lines

  1. Subject:  v05i084:  hunt2 - multi-player maze exploration (V2) [BSD only], Patch1
  2. Newsgroups: comp.sources.games
  3. Approved: billr@saab.CNA.TEK.COM
  4.  
  5. Submitted by: conrad@socrates.ucsf.edu (Conrad Huang%CGL)
  6. Comp.sources.games: Volume 5, Issue 84
  7. Archive-name: hunt2/Patch1
  8.  
  9.     [This was posted on comp.sources.games.bugs. Since this is an
  10.      official patch from the author, I have also posted it here so
  11.      that it will be archived (the bugs group is not archived). -br]
  12.  
  13. #! /bin/sh
  14. # This is a shell archive.  Remove anything before this line, then unpack
  15. # it by saving it into a file and typing "sh file".  To overwrite existing
  16. # files, type "sh file -c".  You can also feed this as standard input via
  17. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  18. # will see the following message at the end:
  19. #        "End of shell archive."
  20. # Contents:  Patch01
  21. # Wrapped by billr@tekred on Mon Nov  7 17:32:57 1988
  22. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  23. if test -f Patch01 -a "${1}" != "-c" ; then 
  24.   echo shar: Will not over-write existing file \"Patch01\"
  25. else
  26. echo shar: Extracting \"Patch01\" \(1341 characters\)
  27. sed "s/^X//" >Patch01 <<'END_OF_Patch01'
  28. XPatch #: 1
  29. XPriority: HIGH
  30. XSubject: nothing mode doesn't work on Vaxen
  31. XFrom: conrad@cgl.ucsf.edu
  32. X
  33. XDescription:
  34. X    As usual, posting to the net immediately causes a bug to
  35. X    manifest itself.  The "nothing" mode described in README does
  36. X    not work on Vaxen because of a four-year old bug.  Why it
  37. X    works on the Suns, I have no idea.
  38. X
  39. X    The start_driver() routine incorrectly close the Socket file
  40. X    descriptor in INTERNET mode.  It should only do so when running
  41. X    with UNIX domain sockets.
  42. X
  43. XFix:
  44. X    Apply the following patch to hunt.c
  45. X
  46. X*** /tmp/,RCSt1022282    Fri Oct 28 16:50:25 1988
  47. X--- hunt.c    Fri Oct 28 16:49:02 1988
  48. X***************
  49. X*** 581,586
  50. X      }
  51. X      if (procid == 0) {
  52. X          (void) signal(SIGINT, SIG_IGN);
  53. X          (void) close(Socket);
  54. X          if (use_port == NULL)
  55. X              execl(Driver, "HUNT", (char *) NULL);
  56. X
  57. X--- 581,587 -----
  58. X      }
  59. X      if (procid == 0) {
  60. X          (void) signal(SIGINT, SIG_IGN);
  61. X+ # ifndef INTERNET
  62. X          (void) close(Socket);
  63. X  # endif
  64. X          if (use_port == NULL)
  65. X***************
  66. X*** 582,587
  67. X      if (procid == 0) {
  68. X          (void) signal(SIGINT, SIG_IGN);
  69. X          (void) close(Socket);
  70. X          if (use_port == NULL)
  71. X              execl(Driver, "HUNT", (char *) NULL);
  72. X          else 
  73. X
  74. X--- 583,589 -----
  75. X          (void) signal(SIGINT, SIG_IGN);
  76. X  # ifndef INTERNET
  77. X          (void) close(Socket);
  78. X+ # endif
  79. X          if (use_port == NULL)
  80. X              execl(Driver, "HUNT", (char *) NULL);
  81. X          else 
  82. X
  83. X
  84. END_OF_Patch01
  85. if test 1341 -ne `wc -c <Patch01`; then
  86.     echo shar: \"Patch01\" unpacked with wrong size!
  87. fi
  88. # end of overwriting check
  89. fi
  90. echo shar: End of shell archive.
  91. exit 0
  92.  
  93.